Repository navigation
fix(flake): make opencode's mcpx-src follow this repo - #11987
Conversation
amd's rebuild of main failed in the checkPhase of the mcpx that the opencode fork bundles (mcpx-0.1.0 under opencode-2.0.30+f852201): TestDefaultConfigStdioRunsSupervised reported "supervised child ... still alive after the reap" at supervised_default_test.go:73 after 10.07s. That line and the 10s bound only exist at d3a0db8, the code rev the fork's own flake.lock pins as mcpx-src: the test there sends one terminate scan right after p.Close(), but the pool's detach is asynchronous, so under load the supervisor still has the daemon attached and refuses; nothing kills the child and the test polls out its 10s. Main already fixed the test (#11828: StopSupervisors retries the refusal and returns only once the socket is gone, which the supervisor removes after reaping its child), and the root mcpx built from main passed in the same rebuild. The fix never reached the opencode-bundled mcpx because this flake left mcpx-src to the fork's lock. Follow the root flake instead (`follows = ""`): this repo is mcpx's canonical home, matching the one-source rule the openchamber -> opencode follow already states. The bundled mcpx is now built from the same pkgs/mcpx tree and the same fleet nixpkgs as packages.<system>.mcpx, so it is the same derivation and a rebuild builds and tests mcpx once. flake.lock: opencode.inputs.mcpx-src is [] (the root) and the stale mcpx-src node (d3a0db8) is gone; the shape matches what nix writes for an equivalent follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Before: the mcpx that the opencode fork bundles (and that amd builds as a dependency of opencode-2.0.30+f852201) was built from
mcpx-src, pinned by the fork's own flake.lock to code rev d3a0db8. amd's rebuild of main failed in that mcpx's checkPhase:TestDefaultConfigStdioRunsSupervisedreported "supervised child ... still alive after the reap" atsupervised_default_test.go:73after 10.07s. At d3a0db8 the test sends a single terminate scan right afterp.Close(); the pool's detach is asynchronous, so under load the supervisor still has the daemon attached and refuses the terminate, nothing kills the child, and the test polls out its fixed 10s. Main already fixed the test (#11828:testsupport.StopSupervisorsretries the refusal and returns only once the supervisor socket is gone, which the supervisor removes only after reaping its child), and the root flake's own mcpx built from main passed in the same rebuild. The fix just never reached the opencode-bundled mcpx, because this flake leftmcpx-srcto the fork's lock.After:
opencode.inputs.mcpx-srcfollows this flake itself (follows = ""). The opencode-bundled mcpx, its daemon modules, and thepackages.<system>.mcpxhere are all built from this repo'spkgs/mcpx. With the same fleet nixpkgs (all three fleet nodes lock 082bd9e7), that is one derivation, so a rebuild builds and tests mcpx once, and a fix landed here reaches amd's next rebuild without re-locking the fork.How: one
followsline in flake.nix with a comment, matching the one-source rule the openchamber -> opencode follow already states. In flake.lock,opencode.inputs.mcpx-srcbecomes[](the root) and the stalemcpx-srcnode is removed. I couldn't runnix flake lockagainst the real graph here (this sandbox can't fetch the openchamber fork), so I made the lock edit by hand. I checked it against what Nix 2.34 writes for the same shape (a child flake with aflake = falseinput following"", plus a sibling flake following that child): it writes"mcpx-src": []and nothing else, and evaluation resolves the root's tree. No test code changes; main's test already holds.Evidence,
-run 'TestDefaultConfigStdioRunsSupervised$', GOMAXPROCS=1, 3 copies in parallel next to 12 busy-loop CPU burners on 4 cores:still alive after the reap).-race.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit